package com.qianfeng.smsplatform.api.exceptions;/***
 *                    .::::.
 *                  .::::::::.
 *                 :::::::::::  
 *             ..:::::::::::'   木马~
 *           '::::::::::::'       
 *             .::::::::::       
 *        '::::::::::::::..
 *             ..::::::::::::.
 *           ``::::::::::::::::
 *            ::::``:::::::::'        .:::.
 *           ::::'   ':::::'       .::::::::.
 *         .::::'      ::::     .:::::::'::::.
 *        .:::'       :::::  .:::::::::' ':::::.
 *       .::'        :::::.:::::::::'      ':::::.
 *      .::'         ::::::::::::::'         ``::::.
 *  ...:::           ::::::::::::'              ``::.
 * ```` ':.          ':::::::::'                  ::::..
 *                    '.:::::'                    ':'````..
 */

import com.qianfeng.smsplatform.common.constants.ResutlDataEnum;

/**
 * @author ：zl
 * @date ：Created in 2021/7/17 19:17
 */
public class MyBaseException  extends RuntimeException {

    private String code;

    public MyBaseException(String message, String code) {
        super(message);
        this.code = code;
    }

    public MyBaseException(ResutlDataEnum dataEnum) {
        super(dataEnum.getMsg());
        this.code = dataEnum.getCode();
    }

    public String getCode() {
        return code;
    }
}
